-- GENERATED SPELL FOR [Irondeep Surveyor] --


function spell0_13098(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_13098', 3500, 1)
end

function spell1_13098(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(15498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13098', 2500, 1)
end

function spell2_13098(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(15654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13098', 18000, 1)
end

function Sorts_13098(pUnit, Event)
local choix_sorts_13098 = math.random(0, 2)
if choix_sorts_13098 == 0 then
pUnit:RegisterEvent('spell0_13098', 1, 1)
end
if choix_sorts_13098 == 1 then
pUnit:RegisterEvent('spell1_13098', 1, 1)
end
if choix_sorts_13098 == 2 then
pUnit:RegisterEvent('spell2_13098', 1, 1)
end
end

function mob13098_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13098', math.random(1500, 3000), 1)
end

function mob13098_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13098_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13098_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13098, 1, 'mob13098_Action')
RegisterUnitEvent(13098, 2, 'mob13098_Leave')
RegisterUnitEvent(13098, 3, 'mob13098_Kill')
RegisterUnitEvent(13098, 4, 'mob13098_Die')
